<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="format-detection" content="telephone=no">
    <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/js/zepto.js" charset="utf-8"></script>   
	<title>卖家信息</title>
    <style type="text/css">
        * {
            outline: none;
            -webkit-tap-highlight-color: rgba(255, 0, 0, 0);
            vertical-align: baseline;
            font-style: normal;
        }

        body {
            margin: 0;
            padding: 0;
            font-size: 12px;
            font-family: Microsoft Yahei, Arial, Simsun, Helvetica, Segoe UI, sans-serif;
            color: #404040;
            background-color: #efeff4;
        }

        img {
            border: 0
        }

        ul, ol, li, dt, dl, dd {
            text-decoration: none;
            list-style: none;
            vertical-align: middle;
            margin: 0;
            padding: 0;
        }

        a,
        a:visited {
            color: #373737;
            text-decoration: none;
        }

        .blank {
            width: 100%;
            height: 20px;
        }
    </style>
</head>

<body>
    <style type="text/css">
        .blank {
            width: 100%;
            height: 20px;
        }

        .userinfoMain {
            width: 100%;
            background-color: #FFF;
            display: table;
        }

        .userinfoMain .userinfoItem {
            width: 96%;
            margin-left: 4%;
            height: 50px;
            line-height: 50px;
        }

        .userinfoMain .userinfoItem span {
            float: left;
            display: block;
            width: 80px;
            height: 50px;
            line-height: 50px;
            text-align: left;
            font-size: 14px;
        }

        .userinfoMain .userinfoItem {
            border-bottom: 1px solid #dbdbdb;
        }

        .userinfoMain .userinfoItem:last-child {
            border-bottom: none;
        }

        .userinfoMain .userinfoItem input {
            width: 210px;
            height: 30px;
            border: none;
            font-size: 14px;
        }

        button {
            width: 94%;
            margin: 0 3%;
            border: none;
            background: #08BA06;
            border-radius: 4px;
            height: 40px;
            line-height: 40px;
            font-size: 18px;
            color: #FFF;
            margin-top: 40px;
            outline: none
        }
    </style>


    <div id="contentbox" style="min-height: 576px;">    
    	<?php if($output['company']['company_state']==1){?>
        <div class="blank"></div>
		<div class="userinfoMain" style="height:100px;">      	
            <div class="userinfoItem">
              	您好，您的资料已经提交，请等待平台的审核。
            </div>
        </div>
        <?php }elseif($output['company']['company_state']==2){?>
        <div class="userinfoMain" style="height:100px;">      	
            <div class="userinfoItem">
                                您好，请点击“支付”按钮，完成保证金的支付。
            </div>
        </div>
        <div class="userinfoMain">      	
            <div class="userinfoItem">
                <span>保证金：</span>
                <font color="red"><?php echo $output['cash']?>元</font>
            </div>
        </div>
        <button class="submit">支付</button>
        <?php }elseif($output['company']['company_state']==3){?>
        <div class="userinfoMain" style="height:100px;">      	
            <div class="userinfoItem">您好，您已经是认证的卖家，扫描二维码进入您的店铺</div>
        </div>
        <div class="userinfoMain">      	
            <div class="userinfoItem">
				<img src="<?php echo BASE_SITE_URL;?>/index.php?act=my&op=qrcode&seller_id=<?php echo $_COOKIE['user_id'];?>">	
            </div>
        </div>

        <?php }?>
    </div>
<script type="text/javascript">
$(function(){

	$(".submit").click(function(){
		$.ajax({
			url:'index.php?act=my&op=updatesn',
			type:'get',
			dataType:'json',
			success:function(data){				
				if(data.state==1){
					location.href='index.php?act=my&op=renpayment';
				}
			}
		});
	});
	
});
</script>
</body>
</html>